package club.janna.jrpc.register;

import java.net.URI;

/**
 * @author Panbo.Guo
 */
@FunctionalInterface
public interface SubscribeCallback {

    /**
     * 回调
     * @param uri
     */
    void callback(URI uri, Action action);

    enum Action {
        UPDATE, REMOVE;
    }
}
